-- GENERATED SPELL FOR [Boulderfist Lord] --


function spell0_2571(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(8258,pUnit)
pUnit:RegisterEvent('Sorts_2571', 602, 1)
end

function spell1_2571(pUnit, Event) --@Fist of Stone,Self--
pUnit:FullCastSpellOnTarget(4955,pUnit)
pUnit:RegisterEvent('Sorts_2571', 12000, 1)
end

function Sorts_2571(pUnit, Event)
local choix_sorts_2571 = math.random(0, 1)
if choix_sorts_2571 == 0 then
pUnit:RegisterEvent('spell0_2571', 1, 1)
end
if choix_sorts_2571 == 1 then
pUnit:RegisterEvent('spell1_2571', 1, 1)
end
end

function mob2571_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2571', math.random(1500, 3000), 1)
end

function mob2571_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2571_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2571_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2571, 1, 'mob2571_Action')
RegisterUnitEvent(2571, 2, 'mob2571_Leave')
RegisterUnitEvent(2571, 3, 'mob2571_Kill')
RegisterUnitEvent(2571, 4, 'mob2571_Die')
